package com.api.shopapi.service.impl;

import com.api.shopapi.entity.NursingSchedulingNighttime;
import com.api.shopapi.mapper.NursingSchedulingNighttimeMapper;
import com.api.shopapi.service.NursingSchedulingNighttimeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("NursingSchedulingNighttimeServiceImplOne")
public class NursingSchedulingNighttimeServiceImpl implements NursingSchedulingNighttimeService {
    @Autowired
    private NursingSchedulingNighttimeMapper nursingSchedulingNighttimeMapper;


    @Override
    public int insert(NursingSchedulingNighttime nursingSchedulingNighttime) {
        return nursingSchedulingNighttimeMapper.insert(nursingSchedulingNighttime);
    }

    @Override
    public int updateByNursingSchedulingNighttimeCode(NursingSchedulingNighttime nursingSchedulingNighttime) {
        return nursingSchedulingNighttimeMapper.updateByNursingSchedulingNighttimeCode(nursingSchedulingNighttime);
    }

    @Override
    public int deleteByNursingSchedulingNighttimeCode(String nursingSchedulingNighttimeCode) {
        return nursingSchedulingNighttimeMapper.deleteByNursingSchedulingNighttimeCode(nursingSchedulingNighttimeCode);
    }

    @Override
    public List<NursingSchedulingNighttime> getListByNursingSchedulingNightTimeCode(String nursingSchedulingNighttimeCode) {
        return nursingSchedulingNighttimeMapper.getListByNursingSchedulingNightTimeCode(nursingSchedulingNighttimeCode);
    }

    @Override
    public NursingSchedulingNighttime getByNursingSchedulingCode(String nursingSchedulingCode) {
        return nursingSchedulingNighttimeMapper.getByNursingSchedulingCode(nursingSchedulingCode);
    }
}
